package com.shuaigef.springbootinit.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import lombok.*;
import lombok.experimental.Accessors;

/**
 * 帖子实体
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("post")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Post implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 帖子id
     */
    @TableId(value = "post_id", type = IdType.AUTO)
    private Integer postId;

    /**
     * 帖子标题
     */
    private String postTitle;

    /**
     * 帖子点赞
     */
    private Integer postSupport;

    /**
     * 图片地址
     */
    private String imgUrl;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 帖子内容
     */
    private String postMsg;

    /**
     * 帖子模块
     */
    private Integer postModel;

    /**
     * 发帖时间
     */
    private LocalDateTime postTime;

    /**
     * 评论数量
     */
    private String postSay;

    /**
     * 帖子是否被举报成功(0-失败，1--成功)
     */
    private Integer postStatus;
} 